<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Default.aspx.cs" Inherits="Project_Default" MasterPageFile="~/Site.Master" %>
<asp:Content ID="Content1" runat="server" ContentPlaceHolderID="contentPlaceHolder1">
<asp:ObjectDataSource ID="odsProjects" runat="server" DeleteMethod="Delete" InsertMethod="Insert"
        OldValuesParameterFormatString="original_{0}" SelectMethod="FetchAll" TypeName="OpenProject.DataObjects.ProjectController"
        UpdateMethod="Update">
        <DeleteParameters>
            <asp:Parameter Name="ProjectId" Type="Object" />
        </DeleteParameters>
        <UpdateParameters>
            <asp:Parameter Name="ProjectId" Type="Int32" />
            <asp:Parameter Name="ProjectCode" Type="String" />
            <asp:Parameter Name="Title" Type="String" />
            <asp:Parameter Name="Description" Type="String" />
        </UpdateParameters>
        <InsertParameters>
            <asp:Parameter Name="ProjectCode" Type="String" />
            <asp:Parameter Name="Title" Type="String" />
            <asp:Parameter Name="Description" Type="String" />
        </InsertParameters>
    </asp:ObjectDataSource>
    <asp:Repeater ID="Repeater1" runat="server" DataSourceID="odsProjects">
        <ItemTemplate>
            <a href='<%# UrlUtilities.ProjectUrl(Eval("Title").ToString()) %>'><%# Eval("Title") %></a>
        </ItemTemplate>
    </asp:Repeater>
</asp:Content>